﻿using MediatR;
using RedDragon.Common.Domain.Process;
using SqlSugar;
using T.Common.Domain.Common;

namespace RedDragon.ERP.API.Application.Commands.Proccess
{
    /// <summary>
    /// 添加工艺路线条件
    /// </summary>
    public class CreateProcessRouteCommand : IRequest<Result>
    {
        /// <summary>
        /// 工艺路线序号
        /// </summary>
        public int ProcessRouteId { get; set; }

        /// <summary>
        /// 工艺编码
        /// </summary>
        public string ProcessRouteNo { get; set; }

        /// <summary>
        /// 工艺名称
        /// </summary>
        public string ProcessRouteName { get; set; }

        /// <summary>
        /// 工艺版本
        /// </summary>
        public string ProcessVersion { get; set; }

        /// <summary>
        /// 工艺描述
        /// </summary>
        public string ProcessDesc { get; set; }

        /// <summary>
        /// 物流
        /// </summary>
        public int MaterialId { get; set; }

        /// <summary>
        /// 状态 1-有效 2-无效
        /// </summary>
        public int ProcessStatus { get; set; }

        /// <summary>
        /// 审核状态 1-未提交 2-已提交 3-已审批 4-已驳回
        /// </summary>
        public int AuditStatus { get; set; }

        /// <summary>
        /// 是否删除 1-已删除 2-未删除
        /// </summary>
        public int IsDeleted { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreatedOwner { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateOwner { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 审核人
        /// </summary>
        public string? ExamineOwner { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ExamineTime { get; set; }
    }
}
